import { defHttp } from "@/utils/http";

// ERP 仓库类别关联 API
export const warehouseCatApi = {
	// 查询仓库类别关联列表
	warehouseCatList: async (params: any) => {
		return await defHttp.get({ url: `/whs/warehouse/cat/page`, params });
	},
	// 新增仓库类别关联
	warehouseCatCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/warehouse/cat/create`, data });
	},

	// 修改仓库类别关联
	warehouseCatUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/warehouse/cat/update`, data });
	},

	// 删除仓库类别关联
	warehouseCatDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/warehouse/cat/delete?id=` + id });
	}
};
